package com.ruoyi.project.jiaqin.wanttobuy.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.jiaqin.val.domain.ClassAttrVal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 采购对象 want_to_buy
 *
 * @author admin
 * @date 2020-12-25
 */
public class WantToBuy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 求购标题 */
    private String title;
    /** 期望价格 */
    private String expectedPrice;
    /** 求购周期 */
    private String purchaseCycle;
    /** 有效求购期 */
    private String effectivePurchase;
    /** 采购用户头像 */
    private String headpic;

    /** 是否是企业：0-否 1-是 */
    private Integer isCompany;
    /** 企业或个人ID */
    private String memberCompanyId;

    public String getMemberCompanyId() {
        return memberCompanyId;
    }

    public void setMemberCompanyId(String memberCompanyId) {
        this.memberCompanyId = memberCompanyId;
    }

    /** 是否收藏：0-否 1-是 */
    private Integer isCollect;

    /** 企业名称 */
    private String companyName;

    /** 电话 */
    private String phone;

    /** 距离 */
    private String distance;
    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 行情数 */
    @Excel(name = "行情数")
    private Integer quotationNum;

    /** 供应数 */
    @Excel(name = "供应数")
    private Integer supplyNum;

    /** 求购数 */
    @Excel(name = "求购数")
    private Integer wantToBuyNum;

    private String sortField;

    private String sortType;

    /** 省id */
    private Long province;
    /** 市id */
    private Long city;
    /** 区id */
    private Long area;
    /** 省名 */
    @Excel(name = "省名")
    private String provinceName;
    /** 市名 */
    @Excel(name = "市名")
    private String cityName;
    /** 区名 */
    @Excel(name = "区名")
    private String areaName;

    public Long getProvince() {
        return province;
    }

    public void setProvince(Long province) {
        this.province = province;
    }

    public Long getCity() {
        return city;
    }

    public void setCity(Long city) {
        this.city = city;
    }

    public Long getArea() {
        return area;
    }

    public void setArea(Long area) {
        this.area = area;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getSortField() {
        return sortField;
    }

    public void setSortField(String sortField) {
        this.sortField = sortField;
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public Integer getQuotationNum() {
        return quotationNum;
    }

    public void setQuotationNum(Integer quotationNum) {
        this.quotationNum = quotationNum;
    }

    public Integer getSupplyNum() {
        return supplyNum;
    }

    public void setSupplyNum(Integer supplyNum) {
        this.supplyNum = supplyNum;
    }

    public Integer getWantToBuyNum() {
        return wantToBuyNum;
    }

    public void setWantToBuyNum(Integer wantToBuyNum) {
        this.wantToBuyNum = wantToBuyNum;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getIsCollect() {
        return isCollect;
    }
    public void setIsCollect(Integer isCollect) {
        this.isCollect = isCollect;
    }

    public Integer getIsCompany() {
        return isCompany;
    }
    public void setIsCompany(Integer isCompany) {
        this.isCompany = isCompany;
    }

    public String getHeadpic() {
        return headpic;
    }
    public void setHeadpic(String headpic) {
        this.headpic = headpic;
    }

    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }

    public String getExpectedPrice() {
        return expectedPrice;
    }
    public void setExpectedPrice(String expectedPrice) {
        this.expectedPrice = expectedPrice;
    }

    public String getPurchaseCycle() {
        return purchaseCycle;
    }
    public void setPurchaseCycle(String purchaseCycle) {
        this.purchaseCycle = purchaseCycle;
    }

    public String getEffectivePurchase() {
        return effectivePurchase;
    }
    public void setEffectivePurchase(String effectivePurchase) {
        this.effectivePurchase = effectivePurchase;
    }

    /** id */
    private String id;

    /** 采购用户ID */
    @Excel(name = "采购用户ID")
    private String memberId;
    //采购用户名
    private String memberName;

    /** 二级分类ID */
    @Excel(name = "二级分类ID")
    private String twoClassId;
    //二级分类名
    private String twoClassName;

    /** 三级分类ID */
    @Excel(name = "三级分类ID")
    private String thrClassId;
    //三级分类名
    private String thrClassName;

    /** 规格品质 */
    @Excel(name = "规格品质")
    private String attrVals;

    //规格品质列表
    private List<ClassAttrVal> attrValList;

    /** 求购数量 */
    @Excel(name = "求购数量")
    private String buyNum;

    /** 期望货源地 */
    @Excel(name = "期望货源地")
    private String hopeAddr;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String addr;

    /** 补充说明 */
    @Excel(name = "补充说明")
    private String reamrks;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phoneNum;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 采购状态 */
    @Excel(name = "采购状态")
    private Integer status;

    /** 发布时间 */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseTime;

    private Integer quotedNum;

    private Double latitude;

    private Double longitude;

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Integer getQuotedNum() {
        return quotedNum;
    }

    public void setQuotedNum(Integer quotedNum) {
        this.quotedNum = quotedNum;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getTwoClassName() {
        return twoClassName;
    }

    public void setTwoClassName(String twoClassName) {
        this.twoClassName = twoClassName;
    }

    public String getThrClassName() {
        return thrClassName;
    }

    public void setThrClassName(String thrClassName) {
        this.thrClassName = thrClassName;
    }

    public List<ClassAttrVal> getAttrValList() {
        return attrValList;
    }

    public void setAttrValList(List<ClassAttrVal> attrValList) {
        this.attrValList = attrValList;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setTwoClassId(String twoClassId)
    {
        this.twoClassId = twoClassId;
    }

    public String getTwoClassId()
    {
        return twoClassId;
    }
    public void setThrClassId(String thrClassId)
    {
        this.thrClassId = thrClassId;
    }

    public String getThrClassId()
    {
        return thrClassId;
    }
    public void setAttrVals(String attrVals)
    {
        this.attrVals = attrVals;
    }

    public String getAttrVals()
    {
        return attrVals;
    }
    public void setBuyNum(String buyNum)
    {
        this.buyNum = buyNum;
    }

    public String getBuyNum()
    {
        return buyNum;
    }
    public void setHopeAddr(String hopeAddr)
    {
        this.hopeAddr = hopeAddr;
    }

    public String getHopeAddr()
    {
        return hopeAddr;
    }
    public void setAddr(String addr)
    {
        this.addr = addr;
    }

    public String getAddr()
    {
        return addr;
    }
    public void setReamrks(String reamrks)
    {
        this.reamrks = reamrks;
    }

    public String getReamrks()
    {
        return reamrks;
    }
    public void setPhoneNum(String phoneNum)
    {
        this.phoneNum = phoneNum;
    }

    public String getPhoneNum()
    {
        return phoneNum;
    }
    public void setViews(Long views)
    {
        this.views = views;
    }

    public Long getViews()
    {
        return views;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setReleaseTime(Date releaseTime)
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime()
    {
        return releaseTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("twoClassId", getTwoClassId())
            .append("thrClassId", getThrClassId())
            .append("attrVals", getAttrVals())
            .append("buyNum", getBuyNum())
            .append("hopeAddr", getHopeAddr())
            .append("addr", getAddr())
            .append("reamrks", getReamrks())
            .append("phoneNum", getPhoneNum())
            .append("views", getViews())
            .append("status", getStatus())
            .append("releaseTime", getReleaseTime())
            .append("title", getTitle())
            .append("expectedPrice", getExpectedPrice())
            .append("purchaseCycle", getPurchaseCycle())
            .append("effectivePurchase", getEffectivePurchase())
            .append("unit", getUnit())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("provinceName", getProvinceName())
            .append("cityName", getCityName())
            .append("areaName", getAreaName())
            .toString();
    }
}
